<script>
	import {
		getToKen
	} from "@/utils/getTonken.js"
	export default {
		onLaunch: function() {
			// 获取TonKen
			// getToKen().then((token) => {
			// 	console.log(token, 'token');
			// });
			const first = uni.getStorageSync('first');
			if (!first) {
				uni.setStorage({
					key: 'first', //首次登录
					data: 1,
					success: function() {
						// console.log('首次登录缓存success');
					}
				})

				uni.reLaunch({
					url: "/components/boot-page/boot-page"
				})
			}
		},
		onShow: function() {
			// console.log('App Show');
		},
		onHide: function() {
			// console.log('App Hide');
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/colorui/common.scss";
	@import "@/uni_modules/uview-plus/index.scss";
</style>